package com.base.web.auth.service;

import com.base.web.core.basic.service.BasicService;
import com.base.web.model.master.auth.Role;
import com.base.web.model.master.auth.RoleResource;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @Author: rentie
 * @Date: 2018/7/10 14:20
 */
public interface RoleService extends BasicService<Role> {


    /**
     * 角色授权
     * @param userId 用户id
     * @param roleId 角色id
     * @param roleResources 角色资源对象数组
     * @return
     */
    Integer roleAuthorization(String userId,String roleId, List<RoleResource> roleResources);

    /**
     * 角色管理界面列表查询
     * @param map 分页参数
     * @return
     */
    PageInfo<Role> queryManageList(Map<String, String> map);
}